﻿﻿@model IEnumerable<verk2013_project_group12.Models.GameInvite>

<ul>
    @foreach (var invite in Model)
    {
    <li><p>@invite.InviterName have invited you to join @invite.GameName game</p> </li>  
        
          <li>
           @using (@Html.BeginForm("joinInvite", "Games", new { id = invite.ID }))
            {  
                 <input type="submit" value="Join the game" />   
            }  

            @using (@Html.BeginForm("DeleteInvite", "Games", new { id = invite.ID }))
            {
                 <input type="submit" value="No thanks" />
            }
        </li>
            
    }

    </ul>